import Vue from 'vue';
import App from './App.vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router';
import store from './store';
import filters from './filters';

Vue.config.productionTip = false;
Vue.use(ElementUI);
// 注册过滤器
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key]);
});
Vue.prototype.$showTab = true;
const app: Vue = new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
});
export default app;
